html,body {
    width: 100%;
}
body {
    min-width: 320px;
    max-width: 540px;
    margin: 0 auto;
    background: #f4f4f4;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #000;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
p {
    margin: 0;
}
.search {
    box-sizing: border-box;
    padding: 10px 15px 0;
    background: #fff;
}
.search-box {
    box-sizing: border-box;
    height: 30px;
    width: 100%;
    border: 1px solid #0086f6;
    border-radius: 15px;

    display: flex;
    align-items: center;
}
.search-box span {
    width: 28px;
    height: 28px;
    background: url(../images/sprite.png) no-repeat 2px 3px;
    background-size: 30px auto;
}
.search-box input {
    flex: 1;
    padding: 0;
    border: none;
    outline: none;
    border-top-right-radius: 14px;
    border-bottom-right-radius: 14px;
}

.nav {
    box-sizing: border-box;
    padding-top: 10px;
    padding-bottom: 2px;
    background: #fff;
}
.nav .inner {
    margin: 0 10px 10px;
    border-radius: 10px;
    /* background: orange; */
}
.nav ul {
    display: flex;
    font-size: 12px;
}
.nav ul:nth-child(1) {
    color: #fff;
}
.nav ul li:nth-child(-n + 5) {
    border-right: 1px solid #fff;
}
.nav ul:nth-child(-n + 3) li {
    border-bottom: 1px solid #fff;
}
.nav ul li:nth-child(1) {
    background-color: #fff5f1;
}
.nav ul li:nth-child(2) {
    background-color: #eff9ff;
}
.nav ul li:nth-child(3) {
    background-color: #f2f5ff;
}
.nav ul li:nth-child(4) {
    background-color: #ecfcf8;
}
.nav ul li:nth-child(5) {
    background-color: #fff9f2;
}
.nav ul:nth-child(1) li:nth-child(1) {
    background: linear-gradient(#fa5956,#fb8650);
    border-top-left-radius: 10px;
}
.nav ul:nth-child(1) li:nth-child(2) {
    background: linear-gradient(180deg,#3c83fa,#50b2fa);
}
.nav ul:nth-child(1) li:nth-child(3) {
    background: linear-gradient(0deg,#66a4ff,#5e80ff);
}
.nav ul:nth-child(1) li:nth-child(4) {
    background: linear-gradient(180deg,#2fc3b6,#52d9b3);
}
.nav ul:nth-child(1) li:nth-child(5) {
    background: linear-gradient(0deg,#ffa846,#ff8939 99%);
    border-top-right-radius: 10px;
}
.nav ul:nth-child(3) li:nth-child(1) {
    border-bottom-left-radius: 10px;
}
.nav ul:nth-child(3) li:nth-child(5) {
    border-bottom-right-radius: 10px;
}
.nav ul li {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    height: 58px;
}
.nav ul li span {
    width: 28px;
    height: 28px;
    background: url(../images/nav.png) no-repeat left top;
    background-size: 28px auto;
}
.nav ul:nth-child(1) li:nth-child(1) span {
    background-position: left -84px;
}
.nav ul:nth-child(1) li:nth-child(2) span {
    background-position: left -168px;
}
.nav ul:nth-child(1) li:nth-child(3) span {
    background-position: left -364px;
}
.nav ul:nth-child(1) li:nth-child(4) span {
    background-position: left -140px;
}
.nav ul:nth-child(1) li:nth-child(5) span {
    background-position: left -28px;
}
.sub-nav {
    margin-top: 3px;
    padding: 0 12px;
    display: flex;
    justify-content: space-between;
}
.sub-nav .l,
.sub-nav .r {
    box-sizing: border-box;
    width: 49%;
    background: #fff;
    border-radius: 10px;
    padding: 5px;
    font-size: 12px;
}
.sub-nav .h {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}
.sub-nav .h img {
    height: 20px;
}
.sub-nav .block-image {
    height: 84px;
}
.sub-nav .block-image img {
    height: 100%;
    object-fit: cover;
    object-position: center;
}
/* .sub-nav .r {
    margin-left: 10px;
} */
.sub-nav .l .h p {
    /* font-size: 12px; */
    padding: 2px;
    background: #ffebe3;
    color: #ff4607;
}
.sub-nav .r .h p {
    /* font-size: 12px; */
    background: #fdefd2;
    color: #ae6e15;
}
.sub-nav .l .block-image img {
    width: 100%;
}
.sub-nav .l .f {
    margin-top: 2px;
    display: flex;
    align-items: center;
}
.sub-nav .l .f .yen {
    font-size: 16px;
    color: crimson;
    font-weight: bold;
    margin-right: 3px;
}
.sub-nav .l .f .tag {
    margin-left: 5px;
    padding: 2px;
    background: linear-gradient(90deg,#fa5956,#fb8650);
    color: #fff;
}
.sub-nav .r .block-image {
    display: flex;
    justify-content: space-between;
}
.sub-nav .r .block-image > div {
    width: 48%;
    position: relative;
}
.sub-nav .r .block-image img {
    width: 100%;
}
.sub-nav .r .block-image span {
    position: absolute;
    left: 0;
    top: 0;
    padding: 2px;
    background: linear-gradient(270deg,#f8e1bd,#e2c089);
}
.sub-nav .r .block-image p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.banner {
    margin: 10px;
    border-radius: 10px;
    overflow: hidden;
}
.banner img {
    width: 100%;
}

.toolbox {
    padding-top: 15px;
    display: flex;
    justify-content: space-around;
}
.toolbox a {
    box-sizing: border-box;
    color: #000;
    text-decoration: none;
    height: 30px;
    padding: 0 14px;
    width: 110px;
    border: 1px solid #999;
    border-radius: 4px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}
.toolbox a img {
    width: 20px;
}
.foot {
    margin-top: 20px;
    text-align: center;
    line-height: 2;
}
.foot p:first-child span {
    margin: 0 10px;
}